package com.mind.adjust.task;

import com.mind.adjust.service.impl.SyncService;
import jakarta.annotation.Resource;
import lombok.extern.log4j.Log4j2;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


@Component
@Log4j2
public class SyncTask {
    @Resource
    private SyncService syncService;

    /**
     * 同步配置
     * 2025 xp注释
     */
    //@Scheduled(cron = "0 0 2 * * ?")
    public void sync() {
        syncService.sync("ticketType");
    }
}
